-- GENERATED SPELL FOR [Gan'arg Warp-Tinker] --


function spell0_20285(pUnit, Event) --@Mana Bomb,n/a--
pUnit:FullCastSpellOnTarget(36846,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20285', 2000, 1)
end

function spell1_20285(pUnit, Event) --@Steal Weapon,n/a--
pUnit:FullCastSpellOnTarget(36208,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20285', 6336, 1)
end

function Sorts_20285(pUnit, Event)
local choix_sorts_20285 = math.random(0, 1)
if choix_sorts_20285 == 0 then
pUnit:RegisterEvent('spell0_20285', 1, 1)
end
if choix_sorts_20285 == 1 then
pUnit:RegisterEvent('spell1_20285', 1, 1)
end
end

function mob20285_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20285', math.random(1500, 3000), 1)
end

function mob20285_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20285_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20285_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20285, 1, 'mob20285_Action')
RegisterUnitEvent(20285, 2, 'mob20285_Leave')
RegisterUnitEvent(20285, 3, 'mob20285_Kill')
RegisterUnitEvent(20285, 4, 'mob20285_Die')
